package com.spbl.common.config;

/**
 * Description(返回code)
 * author: Gao xueyong
 * Create at: 2020/4/19 10:38 下午
 */
public enum ErrorTypeEnum {
    SERVICE_SUCCESS(200,"成功"),
    COMMON_ERROR(40000,"通用异常"),
    PARAM_ERROR(40001,"入参异常"),
    TOKEN_ERROR(-1,"token校验异常"),
    SERVICE_ERROR(500,"服务异常");

    private Integer code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ErrorTypeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
